package org.csu.mypetstore.service;

import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.csu.mypetstore.domain.Order;
import org.csu.mypetstore.domain.OrderStatus;

import java.util.List;

public interface OrderService {
    Order getOrder(int orderID);
    String getStatus(int orderID);
    List<Order> getOrderListByUserID(@Param("userid") String userID) ;
    List<Order> getAllOrders() ;
    void addOrder(Order order);
    void updateOrder(Order order);
    void updateOrderStatus(OrderStatus orderStatus);
    void deleteOrder(int orderID);
    JSONObject setJSON(Order order);
}
